﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shiloh.Job.Common.Global
{
    public static class GlobalConstants
    {
        public const string companyNameRegex = @"^[\u4E00-\u9FA5a-zA-Z0-9]{6,}$";
        public const string companyNameText = "企业名称至少6位的中文、英文、数字";

        public const string companyLoginNameRegex = @"^(?=.*\D)[\w\u4E00-\u9FA5]{2,20}$";
        public const string loginNameText = "用户名2-20位中文、字母、下划线（可包含数字但不能是纯数字）";

        public const string pwdRegex = @"^(?=.*[a-zA-Z])(?=.*\d)[a-zA-Z\d]{6,18}$";
        public const string pwdText = "密码6-18位，必须包含字母和数字";

        public const string linkmanRegex = @"^[\u4E00-\u9FA5a-zA-z]{2,6}$";
        public const string linkmanText = "联系人2-6位的中文或英文";

        public const string telOrMbPhoneRegex = @"^(\d{3,4}-)?\d{7,8}$|^1[0-9]{10}$";
        public const string telormbText = "固定电话或手机号码格式不正确";

        public const string mbPhoneRegex = "^1[0-9]{10}$";
        public const string mbText = "手机号码格式不正确";

        public const string emailRegex = @"^[^\s@]+@[^\s@]+\.[^\s@]+$";
        public const string emailText = "邮箱格式不正确";
    }
}
